<?php
declare (strict_types=1);

namespace app\admin\validate;

use think\Validate;

class AdminPassword extends Validate
{
    protected $rule = [
        "old" => "require",
        "password" => "require|confirm"
    ];

    protected $message = [
        'old.require' => '请输入原密码',
        'password.require' => '请输入新密码',
        'password.confirm' => '确认密码不一致'
    ];
}